<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--<tbody>--%>
<!-- 成本对账-待处理列表 -->
<c:choose>
    <c:when test="${not empty dataList}">
        <%--<c:if test="${QX.cha == 1 }">--%>
            <c:forEach items="${dataList}" var="d" varStatus="vs">
                <tr>
                    <td class='center' style="width: 30px;">
                        <label><input type='checkbox' name='ids'
                          value="${d.ID}" id="${d.ID }"
                          alt="${d.SETTLEMENT_UNIT}" class="ace"/><span
                                class="lbl"></span></label>
                    </td>
                    <%--序号	开票状态	托单号	出提单号	提单号	提单类型	订舱单位
                    结算单位	费用名称	对账单号	对账人	对账日期	箱型	单价	箱量
                    报几出几	总金额	币种	汇率	海船名	海船航次	海船实际开航时间
                    江船名	江船航次	江船开航日期	客服	销售	录入人	录入日期	备注--%>
                   <%-- <td class='center' style="width: 30px;">${vs.index+1}</td>--%>
                    <td class="center">${d.BILL_CODE}</td>
<%--                     <td class="center">${d.LADING_BILL_CODE }</td> --%>
                    <td class="center">${d.LADING_BILL_CODE }</td>                 
                    <td class="center">${d.BILL_TYPE }</td>
                    <td class="center">${d.SHIPPER_NAME }</td>                    
                    <td class="center">${d.SETTLEMENT_UNIT }</td>
                    <td class="center">${d.COST_NAME }</td>
                    <td class="center">${d.check_code }</td>
                    <td class="center">${d.checker_name }</td>
                    <td class="center"><fmt:formatDate value="${d.check_date}" pattern="yyyy-MM-dd"/></td>
                    <td class="center">${d.CONTAINER_TYPE }</td>                   
                    <td class="center">${d.TAX_PRICE }</td>
                    <td class="center">${d.CONTAINER_NUM}</td>
                    <td class="center"></td>                    
                    <td class="center">${d.total}</td>
<%--                     <td class="center">${d.EQUIVALENT_RMB}</td> --%>
                    <td class="center">${d.CURRENCY}</td>
                    <td class="center">${d.EXCHANGE_RATE}</td>
                    <td class="center">${d.SHIP_NAME}</td>
                    <td class="center">${d.SHIP_VOYAGE_NAME}</td>
                    <td class="center">${d.SHIP_ATD}</td>                                   
                    <td class="center">${d.BOAT_NAME}</td>  
                    <td class="center">${d.BOAT_VOYAGE_NAME}</td>
                    <td class="center">${d.BOAT_ATD}</td>
                    <td class="center">${d.portStartDesc}</td>
                    <td class="center">${d.crtRemark}</td>
                    <td class="center">${d.operDate}</td>
                    <td class="center">${d.applyCreatorName}</td>
                    <td class="center">${d.createTime}</td>
                    <td class="center">${d.TRADE_TYPE_ID}</td>
                </tr>
            </c:forEach>
        <%--</c:if>
        <c:if test="${QX.cha == 0 }">
            <tr>
                <td colspan="100" class="center">您无权查看</td>
            </tr>
        </c:if>--%>
    </c:when>
    <c:otherwise>
        <tr class="main_info">
            <td colspan="100" class="center">没有相关数据</td>
        </tr>
    </c:otherwise>
</c:choose>
<tr>
    <td style="vertical-align:top;text-align: left" colspan="7">
        <div class="pagination"
             style="float: left;padding-top: 0px;margin-top: 0px;">
            <ul class="pagination pull-right no-margin">
                <li><a>共<font color=red>${page.totalResult}</font>条</a></li>
                <li><input type="number" value=""
                           class="js_toGoPage"
                           style="width:50px;text-align:center;float:left"
                           placeholder="页码"/></li>
                <li style="cursor:pointer;">
                    <a class="js_go btn btn-mini btn-success">跳转</a></li>
                <li><a class="js_page" item="1">|&lt;</a></li>
                <li><a class="js_page" item="${page.currentPage-1}">&lt;</a></li>
                <li class="active"><a><font color='white'>
                    ${page.currentPage}</font></a></li>
                <li><a class="js_page" item="${page.currentPage+1}">&gt;</a></li>
                <li><a class="js_page" item="${page.totalPage}">&gt;|</a></li>
                <%--<input class="curr" type="hidden" value="${page.currentPage}" />--%>
                <li><a>${page.showCount}条/页,共${page.totalPage}页</a></li>
                <li><select title='显示条数'
                            style="width:55px;float:left;margin-top:1px;" class="js_selectSize">
                    <option value='0'></option>
                    <option value='10'>10</option>
                    <option value='20'>20</option>
                    <option value='30'>30</option>
                    <option value='40'>40</option>
                    <option value='50'>50</option>
                    <option value='60'>60</option>
                    <option value='70'>70</option>
                    <option value='80'>80</option>
                    <option value='90'>90</option>
                    <option value='99'>99</option>
                </select>
                </li>
            </ul>
            <script type="text/javascript">
                var f = parseInt(${formIndex});
                $(".js_page").click(function (evt) {
                    var page = $(evt.target).attr("item");
                    $($("input[name='page.currentPage']")[f]).val(page);
                    $($(".js_left_query")[f]).click();
                });
                $(".js_go").click(function (evt) {
                    var page = $($(".js_toGoPage")[f]).val();
                    $($("input[name='page.currentPage']")[f]).val(page);
                    //$($("input[name='page.showCount']")[f]).val(value);
                    $($(".js_left_query")[f]).click();
                });
                $(".js_selectSize").change(function (evt){
                    var value = $(evt.target).val();
                    $($("input[name='page.currentPage']")[f]).val(1);
                    $($("input[name='page.showCount']")[f]).val(value);
                    $($(".js_left_query")[f]).click();
                });
            </script>
        </div>
    </td>
</tr>

<%--</tbody>--%>
